package com.example.demo.design.GoF.observer.example;

/**
 * //具体目标
 *
 * @author luowj12
 * @since 2021/5/8 14:46
 */
public class ConcreteSubject extends Subject{

    @Override
    public void notifyObserver() {
        System.out.println("具体目标发生改变...");
        System.out.println("--------------");
        for (Object obs : observers) {
            ((Observer) obs).response();
        }
    }

}
